import tensorflow as tf
import os


if __name__ == '__main__':
    # 设置 TensorFlow 的运行日志等级为 2 ---Warning
    os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'

    c1 = tf.constant([1,2,3])
    print(c1)

    # 进行数据的类型转换
    c2 = tf.cast(c1, dtype=tf.float64)
    print(c2)






